class HymnsController < ApplicationController
  active_scaffold do |config|
    config.columns = :title, :album, :byline, :lyrics, :mp3_file, :tag_list, :related_images, :related_templates

    list.columns.exclude :lyrics, :related_images, :related_templates
    create.columns.exclude :related_images, :related_templates
    update.columns.exclude :related_images, :related_templates
    #show.columns.exclude :nil

    columns[:album].form_ui = :select
    columns[:byline].description = '作者或说明'
  end

  # active_scaffold callbacks
  def conditions_for_collection()
  end

  def before_create_save(record)
  end

  def after_create_save(record)
  end
  
  def before_update_save(record)
  end

  def after_update_save(record)
  end
end
